package com.sh.caryr.erp.entity.enums;

import com.baomidou.mybatisplus.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

import java.io.Serializable;

public enum SkuRecordOrderType implements IEnum {
    RECEIPT(1,"收货单"),
    TRADE(2,"交易订单"),
    RETURN(3,"退货单"),
    PURCHASE(4,"采购退货单"),
    WITHOUT(5,"无单");

    private final int value;
    private final String desc;

    SkuRecordOrderType(final int value, final String desc) {
        this.value = value;
        this.desc = desc;

    }

    @JsonValue
    @Override
    public Serializable getValue() {
        return this.value;
    }

    public String getDesc() {
        return this.desc;
    }
}
